﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Sunny.UI;
namespace OtherDevice
{
    public partial class Form_Torsiometer_AR_AT12 : Form_ControlBase
    {
        public Form_Torsiometer_AR_AT12()
        {
            InitializeComponent();
        }
        Torsiometer_AR_AT12 Torsiometer_AR_AT12 = null;
        public override void FlushToDlg(object devicebase)
        {
            try
            {
                if (devicebase == null)
                    return;
                this.Torsiometer_AR_AT12 = devicebase as Torsiometer_AR_AT12;
                this.Dock = DockStyle.Fill;
                this.Show();
            }
            catch (Exception)
            {

            }
        }
        private void Btn_获取扭力_Click(object sender, EventArgs e)
        {
            double nValue2 = 0;
            lab_扭力.Text = Torsiometer_AR_AT12.Function_查询扭力(ref nValue2).ToString();

        }
    }
}
